{__NOLAYOUT__}
<style>
.typeTable tr td{padding:  5px;}
</style>
{switch name="type" }
{case value="editor"}
<div class="layui-form-item">
    <label class="layui-form-label">编辑器类型</label>
    <div class="layui-input-inline">
        <select name="setup[edittype]">
            <option value="layedit" {if $fieldInfo.setup.edittype=='ckeditor'} selected{/if}>ckeditor</option>
        </select>
    </div>
</div>
{/case}
{case value="select" }
<div class="layui-form-item">
    <label class="layui-form-label">选项列表</label>
    <div class="layui-col-lg4">
        <textarea  name="setup[options]" class="layui-textarea">{$fieldInfo.setup.options?$fieldInfo.setup.options:''}</textarea>
    </div>
    <div class="layui-form-mid layui-word-aux">例：选项名称|值<br>一行一个</div>
</div>
{/case}
{case value="radio"}
<div class="layui-form-item">
    <label class="layui-form-label">选项列表</label>
    <div class="layui-col-lg4">
        <textarea  name="setup[options]" class="layui-textarea">{$fieldInfo.setup.options?$fieldInfo.setup.options:''}</textarea>
    </div>
    <div class="layui-form-mid layui-word-aux">例：选项名称|值<br>一行一个</div>
</div>
{/case}
{case value="checkbox"}
<div class="layui-form-item">
    <label class="layui-form-label">选项列表</label>
    <div class="layui-col-lg4">
        <textarea  name="setup[options]" class="layui-textarea">{$fieldInfo.setup.options?$fieldInfo.setup.options:''}</textarea>
    </div>
    <div class="layui-form-mid layui-word-aux">例：选项名称|值<br>一行一个</div>
</div>
{/case}
{case value="image"}
<div class="layui-form-item">
    <label class="layui-form-label">图片类型</label>
    <div class="layui-input-inline">
        <input type="text" name="setup[upload_allowext]" class="input-text layui-input" value="{$fieldInfo.setup.upload_allowext?$fieldInfo.setup.upload_allowext:'jpg|jpeg|gif|png'}">
    </div>
</div>
{/case}
{case value="file"}
<div class="layui-form-item">
    <label class="layui-form-label">文件类型</label>
    <div class="layui-input-inline">
        <input type="text" name="setup[upload_allowext]" class="input-text layui-input" value="{$fieldInfo.setup.upload_allowext?$fieldInfo.setup.upload_allowext:'zip|rar|doc|ppt'}">
    </div>
</div>
{/case}
{default /}
{/switch}